<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<html>
<head>
<title>欢迎来到3C数码供应链模拟系统</title>
<link rel="shortcut icon" href="tomcat.ico" type="image/x-icon" />
<script type="text/javascript">
	document.onkeydown = function() {
		if (event.keyCode == 13) {
			document.forms.login.submit();
		}
	}
	function checkInput() {

		var name = document.getElementById("username").value;
		var pwd = document.getElementById("password").value;

		if (name == null || name == "") {
			alert("请输入用户名！");
			document.getElementById("username").focus();
			return false;
		}

		if (pwd == null || pwd == "") {
			alert("请输入密码！");
			document.getElementById("password").focus();
			return false;
		} else

			return true;
	}
	function submit() {
		if (checkInput())
			document.forms.login.submit();
	}
	function register() {
		window.location.href = "register.jsp";
	}
</script>
<style type="text/css">
<!--
#login {
	position: absolute;
	width: 448px;
	height: 330px;
	z-index: 1;
	left: 614px;
	top: 319px;
	background-image: url(images/10.png);
	visibility: visible;
	margin-left: -200px;
	margin-top: -150px;
}

#Layer1 {
	position: absolute;
	left: 598px;
	top: 333px;
	width: 266px;
	height: 216px;
	z-index: 1;
}

#Layer2 {
	position: absolute;
	left: 742px;
	top: 405px;
	width: 102px;
	height: 41px;
	z-index: 4;
}

#apDiv1 {
	position: absolute;
	left: 411px;
	top: 168px;
	width: 547px;
	height: 430px;
	z-index: 3;
}

#apDiv2 {
	position: absolute;
	left: 680px;
	top: 405px;
	width: 63px;
	height: 36px;
	z-index: 4;
}

#login9 {
	font-family: "宋体";
	font-size: 14px;
	font-weight: bold;
	color: #000;;
	text-decoration: none;
	cursor: hand;
}
-->
</style>
</head>

<body background="images/1.png">


<style>
.intro {
	position: absolute;
	left: 0;
	top: 0;
	layer-background-color: yellow;
	background-color: #FD02DE;
	border: 0.1px solid yellow;
	z-index: 5;
}

.pt9 {
	font-family: "宋体";
	font-size: 9pt;
	text-decoration: none
}

body {
	font-family: "宋体";
	font-size: 9pt;
	text-decoration: none;
	margin-top: 0px
}
</style>
	<div id="i1" class="intro"></div>
	<div id="i2" class="intro"></div>
	<script language="JavaScript1.2">
		
	</script>
	<div id="login">
		<form action="userAction!login" method="post" name="login">
			<table width="100%" border="0" cellpadding="1" cellspacing="1">
				<tr>
					<td>
						<table width="101%" height="264" border="0" cellpadding="0"
							cellspacing="0">

							<tr>
								<td height="55" colspan="5"></td>
								<td width="71%" height="55" colspan="4"></td>
							</tr>

							<tr>
								<td height="39" colspan="5"></td>
							</tr>
							<tr>
								<td height="68" colspan="5" class="login9">&nbsp;</td>
								<td colspan="2" id="login9"><input name="user.userName"
									id="username" type="text"
									style="background: Transparent; width: 220px; border: none; height: 26px; font-size: 18px; font-weight: 600;" />
								</td>
							</tr>

							<tr>
								<td height="2" colspan="2"></td>
								<td colspan="3"></td>
							</tr>
							<tr>
								<td height="52" colspan="5" class="login9">&nbsp;</td>
								<td colspan="2" id="login9"><input name="user.userPass"
									type="password" id="password"
									style="background: Transparent; width: 220px; border: none; height: 26px; font-size: 16px; font-weight: 600" />
								</td>
							</tr>

							<tr>
								<td height="13" colspan="5"></td>
							</tr>
							<tr>
								<td height="13" colspan="5"></td>
							</tr>
							<tr>
								<td width="2%" height="19">&nbsp;</td>

							</tr>
						</table></td>
				</tr>
			</table>
		</form>
	</div>

	<div id="Layer2" style="cursor: hand">
		<img src="images/submit.jpg" width="100" height="29"
			onClick="submit()">
	</div>
	<div id="apDiv2" style="cursor: hand">
		<img src="images/4.png" width="44" height="29" onClick="register()">
	</div>
</body>
</html>
